package org.base.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import org.base.common.annotation.JsonEnum;
import org.base.common.enums.YesOrNo;
import org.base.common.pojo.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.base.sys.enums.RoleStatus;

/**
 * <p>
 * 角色信息
 * </p>
 *
 * @author AutoGenerator
 * @since 2020-05-27
 */
@Data
  @EqualsAndHashCode(callSuper = true)
  @Accessors(chain = true)
@TableName("t_sys_role")
@ApiModel(value="SysRole对象", description="角色信息")
public class SysRole extends BasePojo {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "角色名称")
      private String name;

      @ApiModelProperty(value = "角色编码")
      private String code;

      @ApiModelProperty(value = "显示顺序")
      private Integer seq;

      @ApiModelProperty(value = "角色状态（0正常 1停用）")
      @JsonEnum(RoleStatus.class)
      private Integer status;

      @ApiModelProperty(value = "是否为系统角色（0否 1是）， 系统角色不能删除")
      @JsonEnum(YesOrNo.class)
      private Integer isSys;

      @ApiModelProperty(value = "备注")
      private String remark;


}
